<!DOCTYPE html>
<html>

  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="Cache-Control" content="no-siteapp" />

    <title>Compile project</title>
    <meta name="description" content="Typically, you only need to execute the following command for compiling project.    xmakexmake will probe your host environment and target platform automatic...">

    
    <meta name="keywords" content="xmake,compile,configure,tboox" /> 

    <!-- qq oauth -->
    <meta property="qc:admins" content="5211601217706727767255" />

    <!--icon -->
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <link rel="icon" sizes="192x192" href="/static/img/nice-highres.png" />
	<link rel="apple-touch-icon-precomposed" href="/static/img/apple-touch-icon-57x57-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/static/img/apple-touch-icon-72x72-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/static/img/apple-touch-icon-114x114-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/static/img/apple-touch-icon-144x144-precomposed.png" />
	<link rel="apple-touch-icon-precomposed" sizes="180x180" href="/static/img/retinahd_icon.png" />
	<meta name="msapplication-TileImage" content="/static/img/retinahd_icon.png" />
	
    <link rel="stylesheet" href=" /css/fontawesome/css/font-awesome.min.css ">
    <link rel="stylesheet" href=" /css/main.css ">
    <link rel="canonical" href="https://tboox.org/2016/06/26/compile-project/">
    <link rel="alternate" type="application/rss+xml" title="TBOOX Open Source Project" href="https://tboox.org/feed.xml ">
    <link rel="alternate" hreflang="en" href="https://tboox.org/" />
    <link rel="alternate" hreflang="zh-Hans" href="https://tboox.org/cn/" />




    <script type="text/javascript">
    function isPC(){    
        var userAgentInfo = navigator.userAgent;  
        var Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod");    
        var flag = true;    
        for (var v = 0; v < Agents.length; v++) {    
            if (userAgentInfo.indexOf(Agents[v]) > 0) { flag = false; break; }    
        }    
        return flag;    
    }
    </script>

<!-- baidu ads -->



    <!-- baidu ads -->

</head>


  <body>

    <header id="top">
    <div class="wrapper">
        <a href="/" class="brand">TBOOX</a>
        <button id="headerMenu" class="menu"><i class="fa fa-bars"></i></button>
        <nav id="headerNav">
            <ul>
                <li>
                    
                    <a href="/cn?lang=0">
                    
                        <i class="fa fa-home"></i>中文
                    </a>
                </li>

                
                    
                     
                    
                
                    
                     
                     
                    <li>

                        
                            
                            <a href="/project/">
                            
                        
                            <i class="fa fa-bookmark"></i>Projects
                        </a>
                    </li>
                    
                    
                    
                
                    
                     
                    
                
                    
                     
                     
                    <li>

                        
                            
                            <a href="/archive/">
                            
                        
                            <i class="fa fa-archive"></i>Archives
                        </a>
                    </li>
                    
                    
                    
                
                    
                     
                    
                
                    
                     
                     
                    <li>

                        
                            
                            <a href="/category/">
                            
                        
                            <i class="fa fa-th-list"></i>Categories
                        </a>
                    </li>
                    
                    
                    
                
                    
                     
                    
                
                    
                     
                     
                    <li>

                        
                            
                            <a href="/tag/">
                            
                        
                            <i class="fa fa-tags"></i>Tags
                        </a>
                    </li>
                    
                    
                    
                
                    
                
                    
                     
                    
                
                    
                     
                     
                    <li>

                        
                            
                            <a href="/docs/">
                            
                        
                            <i class="fa fa-book"></i>Documents
                        </a>
                    </li>
                    
                    
                    
                
                    
                     
                    
                
                    
                     
                     
                    <li>

                        
                            
                            <a href="https://xmake.io/#/about/contact" target="_blank" >
                            
                        
                            <i class="fa fa-forumbee"></i>Community
                        </a>
                    </li>
                    
                    
                    
                
                    
                     
                    
                
                    
                     
                     
                    <li>

                        
                            
                            <a href="/donation/">
                            
                        
                            <i class="fa fa-heart"></i>Donate
                        </a>
                    </li>
                    
                    
                    
                
                    
                     
                    
                
                    
                     
                     
                    <li>

                        
                            
                            <a href="/about/">
                            
                        
                            <i class="fa fa-user"></i>About
                        </a>
                    </li>
                    
                    
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                     
                     
                    
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
                    
                
            </ul>
        </nav>
    </div>
</header>



        <div class="page clearfix" post>
    <div class="left">
        <h1>Compile project</h1>
        <div class="label">

            <div class="label-card">
                <i class="fa fa-calendar"></i>2016-06-26
            </div>

            <div class="label-card">
                
            </div>

            <div class="label-card">
                
            </div>

            <div class="label-card">
            


<!-- <span class="point">•</span> -->
<span class="categories">
  <i class="fa fa-th-list"></i>
  
    
        <a href="/category/#xmake" title="Category: xmake" rel="category">xmake</a>
    
  

  <!-- <span class="point">•</span> -->
</span>


            </div>

            <div class="label-card">
            
<!-- <span class="point">•</span> -->
<span class="pageTag">
  <i class="fa fa-tags"></i>
  
    
        <!--a href="/tag/#xmake" title="Tag: xmake" rel="tag">xmake</a-->
        <a href="/tag/#xmake" title="Tag: xmake" rel="tag">xmake</a>&nbsp;
    
        <!--a href="/tag/#compile" title="Tag: compile" rel="tag">compile</a-->
        <a href="/tag/#compile" title="Tag: compile" rel="tag">compile</a>&nbsp;
    
        <!--a href="/tag/#configure" title="Tag: configure" rel="tag">configure</a-->
        <a href="/tag/#configure" title="Tag: configure" rel="tag">configure</a>
    
  

</span>

            </div>

        </div>
        <hr>
        <article itemscope itemtype="http://schema.org/BlogPosting">
        <p>Typically, you only need to execute the following command for compiling project.</p>

<div class="language-bash highlighter-rouge"><pre class="highlight"><code>    xmake
</code></pre>
</div>

<p>xmake will probe your host environment and target platform automaticly.</p>

<p>The default mode is release and xmake will compile all targets.</p>

<p>You can compile only one given target which name is ‘test’ for executing the following command.</p>

<div class="language-bash highlighter-rouge"><pre class="highlight"><code>    xmake <span class="nb">test</span>
</code></pre>
</div>

<p>If you want to complie the debug program, you need configure it for switching to the debug mode and compile it.</p>

<div class="language-bash highlighter-rouge"><pre class="highlight"><code>    xmake config --mode<span class="o">=</span>debug
    xmake
</code></pre>
</div>

<p>We provide shorthand for each command, for example:</p>

<div class="language-bash highlighter-rouge"><pre class="highlight"><code>    xmake f -m debug
    xmake
</code></pre>
</div>

<p>Please run <code class="highlighter-rouge">xmake --help</code> to get more info about it.</p>

<p>We need to describe them for the debug and release compile mode in xmake.lua file, for example:</p>

<div class="language-bash highlighter-rouge"><pre class="highlight"><code>    -- the debug mode
    <span class="k">if </span>is_mode<span class="o">(</span><span class="s2">"debug"</span><span class="o">)</span> <span class="k">then</span>
        
        -- <span class="nb">enable </span>the debug symbols
        set_symbols<span class="o">(</span><span class="s2">"debug"</span><span class="o">)</span>

        -- disable optimization
        set_optimize<span class="o">(</span><span class="s2">"none"</span><span class="o">)</span>

        -- add defines <span class="k">for </span>debug
        add_defines<span class="o">(</span><span class="s2">"__tb_debug__"</span><span class="o">)</span>
    end

    -- the release or profile modes
    <span class="k">if </span>is_mode<span class="o">(</span><span class="s2">"release"</span>, <span class="s2">"profile"</span><span class="o">)</span> <span class="k">then</span>

        -- the release mode
        <span class="k">if </span>is_mode<span class="o">(</span><span class="s2">"release"</span><span class="o">)</span> <span class="k">then</span>
            
            -- <span class="nb">set </span>the symbols visibility: hidden
            set_symbols<span class="o">(</span><span class="s2">"hidden"</span><span class="o">)</span>

            -- strip all symbols
            set_strip<span class="o">(</span><span class="s2">"all"</span><span class="o">)</span>

            -- fomit the frame pointer
            add_cxflags<span class="o">(</span><span class="s2">"-fomit-frame-pointer"</span><span class="o">)</span>
            add_mxflags<span class="o">(</span><span class="s2">"-fomit-frame-pointer"</span><span class="o">)</span>

        -- the profile mode
        <span class="k">else</span>
        
            -- <span class="nb">enable </span>the debug symbols
            set_symbols<span class="o">(</span><span class="s2">"debug"</span><span class="o">)</span>

        end

        -- <span class="k">for </span>pc
        <span class="k">if </span>is_arch<span class="o">(</span><span class="s2">"i386"</span>, <span class="s2">"x86_64"</span><span class="o">)</span> <span class="k">then</span>
     
            -- <span class="nb">enable </span>fastest optimization
            set_optimize<span class="o">(</span><span class="s2">"fastest"</span><span class="o">)</span>

        -- <span class="k">for </span>embed
        <span class="k">else</span>
            -- <span class="nb">enable </span>smallest optimization
            set_optimize<span class="o">(</span><span class="s2">"smallest"</span><span class="o">)</span>
        end

        -- attempt to add vector extensions 
        add_vectorexts<span class="o">(</span><span class="s2">"sse2"</span>, <span class="s2">"sse3"</span>, <span class="s2">"ssse3"</span>, <span class="s2">"mmx"</span><span class="o">)</span>
    end
</code></pre>
</div>

<p>We can rebuild all targets：</p>

<div class="language-bash highlighter-rouge"><pre class="highlight"><code>       xmake -r
    or xmake --rebuild
</code></pre>
</div>

<p>And we can compile target with a gived architecture:</p>

<div class="language-bash highlighter-rouge"><pre class="highlight"><code>       xmake f -a armv7
    or xmake config --arch<span class="o">=</span>armv7

       xmake
</code></pre>
</div>

<p>If you want to compile target for the iphoneos platform in macosx host, you can do it:</p>

<div class="language-bash highlighter-rouge"><pre class="highlight"><code>       xmake f -p iphoneos
    or xmake f --plat<span class="o">=</span>iphoneos

       xmake
</code></pre>
</div>

<p>We need configure the NDK directory path for android platform.</p>

<div class="language-bash highlighter-rouge"><pre class="highlight"><code>       xmake f -p android --ndk<span class="o">=</span>xxxx
       xmake
</code></pre>
</div>

<p>Or we can configure the NDK path as global.</p>

<div class="language-bash highlighter-rouge"><pre class="highlight"><code>       xmake g --ndk<span class="o">=</span>xxxx
    or xmake global --ndk<span class="o">=</span>xxx

       xmake f -p android
       xmake
</code></pre>
</div>

<p>Please run <code class="highlighter-rouge">xmake f --help</code> to get more info about architecture and platform.</p>

<p>We also can compile target using other cross-toolchains for the linux and android platfrom.</p>

<div class="language-bash highlighter-rouge"><pre class="highlight"><code>       xmake f -p android -a armv7-a --cross<span class="o">=</span>arm-linux-androideabi- --toolchains<span class="o">=</span>/xxxx/bin
    or xmake f -p linux --cross<span class="o">=</span>arm-linux-androideabi- --toolchains<span class="o">=</span>/toolsdk/bin --ldflags<span class="o">=</span><span class="s2">"-arch armv7 -L/use/lib -lm -lc -lz"</span> --cxflags<span class="o">=</span><span class="s2">"-I/usr/include"</span>
    or xmake f -p mingw --sdk<span class="o">=</span>/mingwsdk
    or xmake f -p linux --sdk<span class="o">=</span>/toolsdk

       xmake 
</code></pre>
</div>

<p>Uses <code class="highlighter-rouge">--clean</code> argument for cleaning up all cached configuration</p>

<div class="language-bash highlighter-rouge"><pre class="highlight"><code>       xmake f -c
    or xmake f --clean
       xmake
</code></pre>
</div>

<p>Or cleans target files</p>

<div class="language-bash highlighter-rouge"><pre class="highlight"><code>    <span class="c"># clean targets only</span>
    xmake -c
    or xmake --clean

    <span class="c"># clean all targets and temporary files </span>
    or xmake --clean --all
</code></pre>
</div>

<p>Please run <code class="highlighter-rouge">xmake f --help</code> for getting more configuration info</p>

<div class="language-bash highlighter-rouge"><pre class="highlight"><code>    Usage: xmake config|f <span class="o">[</span>options] <span class="o">[</span>target]

    Configure the project.

    Options: 
        -c, --clean                            Clean the cached configure and configure all again.
                                               
        -p PLAT, --plat<span class="o">=</span>PLAT                   Compile <span class="k">for </span>the given platform. <span class="o">(</span>default: macosx<span class="o">)</span>
                                                   - android
                                                   - iphoneos
                                                   - linux
                                                   - macosx
                                                   - mingw
                                                   - watchos
                                                   - windows
        -a ARCH, --arch<span class="o">=</span>ARCH                   Compile <span class="k">for </span>the given architecture. <span class="o">(</span>default: auto<span class="o">)</span>
                                                   - android: armv5te armv6 armv7-a armv8-a arm64-v8a
                                                   - iphoneos: armv7 armv7s arm64 i386 x86_64
                                                   - linux: i386 x86_64
                                                   - macosx: i386 x86_64
                                                   - mingw: i386 x86_64
                                                   - watchos: armv7 armv7s arm64 i386 x86_64
                                                   - windows: x86 x64 amd64 x86_amd64
        -m MODE, --mode<span class="o">=</span>MODE                   Compile <span class="k">for </span>the given mode. <span class="o">(</span>default: release<span class="o">)</span>
                                                   - debug
                                                   - release
                                                   - profile
        -k KIND, --kind<span class="o">=</span>KIND                   Compile <span class="k">for </span>the given target kind. <span class="o">(</span>default: static<span class="o">)</span>
                                                   - static
                                                   - shared
                                                   - binary
            --host<span class="o">=</span>HOST                        The current host environment. <span class="o">(</span>default: macosx<span class="o">)</span>
                                               
            --make<span class="o">=</span>MAKE                        Set the make path. <span class="o">(</span>default: auto<span class="o">)</span>
            --ccache<span class="o">=</span>CCACHE                    Enable or disable the c/c++ compiler cache. <span class="o">(</span>default: auto<span class="o">)</span>
                                               
            --cross<span class="o">=</span>CROSS                      The cross toolchains prefix
                                               .e.g
                                                   - i386-mingw32-
                                                   - arm-linux-androideabi-
            --toolchains<span class="o">=</span>TOOLCHAINS            The cross toolchains directory
                                               
            --cc<span class="o">=</span>CC                            The C Compiler
            --cxx<span class="o">=</span>CXX                          The C++ Compiler
            --cflags<span class="o">=</span>CFLAGS                    The C Compiler Flags
            --cxflags<span class="o">=</span>CXFLAGS                  The C/C++ compiler Flags
            --cxxflags<span class="o">=</span>CXXFLAGS                The C++ Compiler Flags
                                               
            --as<span class="o">=</span>AS                            The Assembler
            --asflags<span class="o">=</span>ASFLAGS                  The Assembler Flags
                                               
            --sc<span class="o">=</span>SC                            The Swift Compiler
            --scflags<span class="o">=</span>SCFLAGS                  The Swift Compiler Flags
                                               
            --ld<span class="o">=</span>LD                            The Linker
            --ldflags<span class="o">=</span>LDFLAGS                  The Binary Linker Flags
                                               
            --ar<span class="o">=</span>AR                            The Static Library Linker
            --arflags<span class="o">=</span>ARFLAGS                  The Static Library Linker Flags
                                               
            --sh<span class="o">=</span>SH                            The Shared Library Linker
            --shflags<span class="o">=</span>SHFLAGS                  The Shared Library Linker Flags
                                               
            --ndk<span class="o">=</span>NDK                          The NDK Directory
            --ndk_sdkver<span class="o">=</span>NDK_SDKVER            The SDK Version <span class="k">for </span>NDK <span class="o">(</span>default: auto<span class="o">)</span>
                                               
            --mm<span class="o">=</span>MM                            The Objc Compiler
            --mxx<span class="o">=</span>MXX                          The Objc++ Compiler
            --mflags<span class="o">=</span>MFLAGS                    The Objc Compiler Flags
            --mxflags<span class="o">=</span>MXFLAGS                  The Objc/c++ Compiler Flags
            --mxxflags<span class="o">=</span>MXXFLAGS                The Objc++ Compiler Flags
                                               
            --xcode_dir<span class="o">=</span>XCODE_DIR              The Xcode Application Directory <span class="o">(</span>default: auto<span class="o">)</span>
            --xcode_sdkver<span class="o">=</span>XCODE_SDKVER        The SDK Version <span class="k">for </span>Xcode <span class="o">(</span>default: auto<span class="o">)</span>
            --target_minver<span class="o">=</span>TARGET_MINVER      The Target Minimal Version <span class="o">(</span>default: auto<span class="o">)</span>
                                               
            --mobileprovision<span class="o">=</span>MOBILEPROVISION  The Provisioning Profile File <span class="o">(</span>default: auto<span class="o">)</span>
            --codesign<span class="o">=</span>CODESIGN                The Code Signing Indentity <span class="o">(</span>default: auto<span class="o">)</span>
            --entitlements<span class="o">=</span>ENTITLEMENTS        The Code Signing Entitlements <span class="o">(</span>default: auto<span class="o">)</span>
                                               
            --vs<span class="o">=</span>VS                            The Microsoft Visual Studio <span class="o">(</span>default: auto<span class="o">)</span>
                                               
        -f FILE, --file<span class="o">=</span>FILE                   Read a given xmake.lua file. <span class="o">(</span>default: xmake.lua<span class="o">)</span>
        -P PROJECT, --project<span class="o">=</span>PROJECT          Change to the given project directory.
                                               Search priority:
                                                   1. The Given Command Argument
                                                   2. The Envirnoment Variable: XMAKE_PROJECT_DIR
                                                   3. The Current Directory
        -o BUILDIR, --buildir<span class="o">=</span>BUILDIR          Set the build directory. <span class="o">(</span>default: build<span class="o">)</span>
                                               
        -v, --verbose                          Print lots of verbose information.
            --version                          Print the version number and exit.
        -h, --help                             Print this <span class="nb">help </span>message and exit.
                                               
        target                                 Configure <span class="k">for </span>the given target. <span class="o">(</span>default: all<span class="o">)</span>
</code></pre>
</div>

        </article>
        <hr>

        <!-- baidu ads -->
        

        
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
        
            
        
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
            
        
            
            
                
            
        
        

        
        
            
            
            
                
                    
                        
                        <h2 id="similar_posts">Similar Posts</h2>
                        <ul>
                        
                        <li class="relatedPost">
                            <a href="/2021/12/17/xmake-update-v2.6.2/">Xmake v2.6.2 released, Support building Linux kernel driver module
                            
                            </a>
                        </li>
                        
                        
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
            
        
            
        
            
            
            
                
                    
                        
                        <li class="relatedPost">
                            <a href="/2021/12/03/xmake-update-v2.6.1/">xmake v2.6.1 released, Switch to Lua5.4 runtime, Support Rust and C++ mixed compilation
                            
                            </a>
                        </li>
                        
                        
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
            
        
            
        
            
            
            
                
                    
                        
                        <li class="relatedPost">
                            <a href="/2021/10/30/xmake-update-v2.5.9/">xmake v2.5.9 released, Improve C++20 Modules and support Nim, Keil MDK and Unity Build
                            
                            </a>
                        </li>
                        
                        
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
            
        
            
        
            
            
            
                
                    
                        
                        <li class="relatedPost">
                            <a href="/2021/10/08/xmake-update-v2.5.8/">xmake v2.5.8 is released, Support Pascal/Swig program and Lua53 runtime
                            
                            </a>
                        </li>
                        
                        
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
            
        
            
        
            
            
            
                
                    
                        
                        <li class="relatedPost">
                            <a href="/2021/08/29/xmake-update-v2.5.7/">xmake v2.5.7 released, Use lockfile to freeze package dependencies and Vala/Metal language support
                            
                            </a>
                        </li>
                        
                        
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
                
                    
                
                    
                
                    
                
            
            
        
            
        
        
            </ul>
        

        <div class="post-recent">
    <div class="pre">

        

        

        
        
        <p><strong>Prev Post</strong> <a href="/2016/06/26/a-simple-demo/">A simple xmake.lua</a></p>
        
    </div>

    <div class="nex">

        

        

        
        
        <p><strong>Next Post</strong> <a href="/2016/06/26/create-project/">Create project</a></p>
        
    </div>
</div>


        <h2 id="comments">Comments</h2>
        






<div id="gitalk-container"></div>
<link rel="stylesheet" href="/css/gitalk.css">
<script src="/js/gitalk.min.js"></script>

<script>
const gitalk = new Gitalk({
  clientID: '73946dc1d9e2276ad0da',
  clientSecret: '12a3cb94361ba3ebc6ecb68cf80d592bfaa8106d',
  repo: 'tboox.github.io',
  owner: 'waruqi',
  admin: ['waruqi'],
  id: location.pathname,      
  language: 'en',
  distractionFreeMode: false  
})

gitalk.render('gitalk-container')
</script>





    </div>
    <button class="anchor"><i class="fa fa-anchor"></i></button>
    <div class="right">
        <div class="wrap">


            <!-- codefund ads -->
            

            <!-- Content -->
            <div class="side content">
                <div>
                    Content
                </div>
                <ul id="content-side" class="content-ul">
                    <li><a href="#chinese">中文</a></li>
                    <li><a href="#similar_posts">Similar Posts</a></li>
                    <li><a href="#comments">Comments</a></li>
                </ul>
            </div>

            <!-- baidu ads -->
            

            <br>
            <div class="side">
                <div>
                    <i class="fa fa-external-link"></i>
                    Links
                </div>
                <ul class="content-ul">
                  <li><a href="http://github.com/waruqi/tbox">tbox</a></li>
                  <li><a href="http://www.xmake.io">xmake</a></li>
                  <li><a href="https://github.com/waruqi">github</a></li>
                </ul>
            </div> 

            <!-- google ads -->
            

            <!-- baidu ads -->
            

            <!-- chitika ads -->
            
        </div>
    </div>

    <!-- baidu ads -->
    
</div>
<script>
/**
 * target _blank
 */
(function() {
    var aTags = document.querySelectorAll('article a:not([id])')
    for (var i = 0; i < aTags.length; i++) {
        aTags[i].setAttribute('target', '_blank')
    }
}());
</script>
<script src="/js/pageContent.js " charset="utf-8"></script>



    <footer class="site-footer">
    <div class="wrapper">
        <p class="description">
             Copyright (c) 2016-2020 tboox.org 
        </p>
        <p class="contact">
            
            <a href="https://github.com/waruqi" title="GitHub"><i class="fa fa-github" aria-hidden="true"></i></a> 
             
            
            <a href="mailto:waruqi@gmail.com" title="email"><i class="fa fa-envelope-o" aria-hidden="true"></i></a> 
            
            
            <a href="https://twitter.com/waruqi" title="Twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a> 
            
            <a href="/feed.xml" title="feed"><i class="fa fa-feed" aria-hidden="true"></i></a> 
        </p>
        <p class="power">
            <span>
                Site powered by <a href="https://jekyllrb.com/">Jekyll</a> & <a href="https://github.com/Gaohaoyang">HyG</a> & <a href="https://pages.github.com/">Github Pages</a>.
            </span>
        </p>
    </div>
</footer>

    <div class="back-to-top">
    <a href="#top" class="scroll">
        <i class="fa fa-arrow-up" aria-hidden="true"></i>
    </a>
</div>

    <script src=" /js/main.js " charset="utf-8"></script>
    <script src=" /js/scroll.min.js " charset="utf-8"></script>
  </body>

</html>
